/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package operadores;

/**
 *
 * @author 66880717
 */
public class Division implements Operador{

    @Override
    public double calcular(double a, double b) throws ArithmeticException {
        if (b==0) {
            throw new ArithmeticException ("El denominador no debe ser cero");
        }
        return (a/b);
    }
    
}
